package com.hs.srm.common.utils;

import javax.xml.namespace.QName;

/**
 * 系统常量定义
 *
 * @author 鐘曉籟
 * @version V1.0.0
 * @date 2018年7月26日 上午9:50:30
 */
public class Constants {

	public static final int DEFAULT_REPORT_PAGESIZE = 20;

	public static final String REPORT_QUERY_SESSION = "reportQuery";

	public static final int QUERY_CACHE_COUNT = 30;

	public static final int EXCEL_TITLE_TEXT_INDEX = 0x0;

	public static final int EXCEL_COLUMN_NAME_INDEX = 0x1;
	
	public static final QName SERVICE_NAME = new QName("http://webservice.review.km.kmss.landray.com/",
			"IKmReviewWebserviceServiceService");
	
	/**
	 * 导入数据
	 *
	 * @author 鐘曉籟
	 * @version V1.0.0
	 * @date 2018年7月26日 上午9:50:21
	 */
	public static class ImpResultMsg {
		public static final String UPLOAD_FILE_FAILURE = "文件上传失败";
		public static final String MOVE_FILE_FAILURE = "服务器端移动文件失败";
		public static final String READ_FILE_FAILURE = "读取Excel文件失败";
		public static final String IMPORT_DATA_FAILURE = "导入数据失败";
		public static final String WRITE_DATA_FAILURE = "往数据库写入数据失败";

		public static final String INVALID_TITLE = "表格标题存在错误";
		public static final String EMPTY_DATA = "表格中不包含任何数据";
		public static final String REDUNDANT_COLUMN_DATA = "表格数据区外存在多余内容";
		public static final String MSSING_DATA = "表格数据不完整";
		public static final String INVALID_DATE = "日期格式不正确";
		public static final String INVALID_NUMBER = "数字格式不正确";
		public static final String INNER_DUPLICATE_DATA = "表格内记录存在日期重叠";
		public static final String OUTER_DUPLICATE_DATA = "表格内有数据与数据库已有记录存在日期重叠";
		public static final String INVALID_DEPT_DATA = "部门代码不正确";
		public static final String INVALID_DAYS_SCOPE = "计划生产占比只能是0-1(不包含1)的小数";

		public static final String MISSING_BEGINTIME_COLUMN = "缺失开始日期栏位";
		public static final String MISSING_ENDTIME_COLUMN = "缺失结束日期栏位";
		public static final String MISSING_PROTYPE_COLUMN = "缺失规格栏位";
		public static final String MISSING_DEPTCODE_COLUMN = "缺失部门编号栏位";

		public static final String CHECK_TIME_FAILURE = "检验时间日期失败";
		public static final String REVERSED_TIMES = "结束日期不能晚于开始日期";
	}

}
